From 92e6c93c21125e69889f916b4a5f50738da615f6 Mon Sep 17 00:00:00 2001 From: Ewan Mellor Date: Sat, 16 Dec 2006 12:54:43 +0000 Subject: [PATCH] Only try to label resources if ACM is enabled. Signed-off-by: Stefan Berger --- tools/xm-test/lib/XmTestLib/acm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/xm-test/lib/XmTestLib/acm.py b/tools/xm-test/lib/XmTestLib/acm.py index a0d8a43c09..c670bc039b 100644 --- a/tools/xm-test/lib/XmTestLib/acm.py +++ b/tools/xm-test/lib/XmTestLib/acm.py @@ -57,6 +57,8 @@ def ACMLabelResources(resources): # Applications may label resources explicitly by calling this function def ACMLabelResource(resource, label='red'): + if not isACMEnabled(): + return if acm_verbose: print "labeling resource %s with label %s" % (resource, label) if not ACM_LABEL_RESOURCES: -- 2.30.2